<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateSkinDetectionItemsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('skin_detection_items', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->integer('skin_detector_id')->comment('检测仪类型id，关联skin_detectors表');
			$table->integer('item_id')->default(0)->comment('检测项的编号：id');
			$table->string('name')->comment('检测项目名称');
			$table->string('const');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('skin_detection_items');
	}

}
